﻿using System.Collections.Generic;
using System.Linq;

namespace Schema
{
    public class Property
    {
        public string Name { get; private set; }
        public string Description { get; private set; }
        public IEnumerable<string> ExpectedTypes { get; private set; }

        public Property(string name, string expectedType, string description)
            : this(name, new[] {expectedType}, description)
        {
        }

        public Property(string name, IEnumerable<string> expectedTypes, string description)
        {
            Name = name;
            Description = description;
            ExpectedTypes = expectedTypes.AsEnumerable();
        }
    }
}
